<template>
  <div class="main">
    <el-container class="root-container">
      <el-aside width="225px">Aside</el-aside>
      <el-container class="main-container">
        <el-header class="page-header">Header</el-header>
        <el-main class="page-content">Main</el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  name: 'Main'
})
</script>

<style scoped lang="less">
.root-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  .main-container {
    height: 100%;
  }
  .page-content {
    height: calc(100% - 48px);
  }
}

.el-header,
.el-footer {
  display: flex;
  color: #333;
  text-align: center;
  align-items: center;
}
.el-header {
  height: 48px !important;
}

.el-aside {
  overflow-x: hidden;
  overflow-y: auto;
  line-height: 200px;
  text-align: left;
  cursor: pointer;
  background-color: #001529;
  transition: width 0.3s linear;
  scrollbar-width: none; /* firefox */
  -ms-overflow-style: none; /* IE 10+ */

  &::-webkit-scrollbar {
    display: none;
  }
}
/deep/.el-menu {
  border-right: none;
}
.el-main {
  color: #333;
  text-align: center;
  background-color: #f0f2f5;
}
</style>
